package com.ryder.subject.domain.convert;

import com.ryder.subject.domain.entity.SubjectLabelBO;
import com.ryder.subject.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 描述: 标签BO转换
 *
 * @author Ryder
 * @version 1.0
 * @since 1.0 // 版本号，指明从哪个版本开始
 * 更新日期: 2025/02/05
 */

@Mapper
public interface SubjectLabelConvert {

    SubjectLabelConvert INSTANCE = Mappers.getMapper(SubjectLabelConvert.class);

    /**
     * BO 转换为实体
     * @param subjectLabelBO
     * @return SubjectLabel
     */
    SubjectLabel convertBoToLabel(SubjectLabelBO subjectLabelBO);

    List<SubjectLabelBO> convertLabelListToBoList(List<SubjectLabel> labelList);
}
